home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
PWAULTP3.ZIP
/
PWAPRGMS.A02
/
PWA95
/
PWAFDS10.ZIP
/
SHRINKER.DOX
< prev
next >
Wrap
Text File
|
1995-06-12
|
5KB
|
93 lines
───────────────────────────────────────────────────────────────────────────────
PCBOARD FILE DIRECTORIES SHRINKER V1.0
───────────────────────────────────────────────────────────────────────────────
-Dox By Timecop
1. Introduction.
~~~~~~~~~~~~
First of all I would like to thank The Comanche, who gave me this great
idea. At first I didn't know exactly which way I wanted to go. I was
going to make it half EXE half PPE where you (sysop) would flag all files
that you want to be shrinked in PPE and then shell out to DOS and do all
the work. That seemed a little retarded and it would have taken a lot more
time.
2. A few words about the utility itself.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This utility was written in Pascal and compiled with Turbo Pascal 7.0. The
purpose of it is to take out all the unnecessary descriptions from your file
directories. I believe that there was another thing like this released in
1994 by Q-TIP. There, you had to specify how many characters of a filename
to compare with others when you are running it. I think that it's the
*worst* method.
3. How does it work?
~~~~~~~~~~~~~~~~
Basically I don't have to explain this but I figured that some of you will
have trouble using it (if you will, you are retarded).
There are 4 stages:
1) Going through original file collecting filenames.
2) Putting collected files in alphabetical order (was a bitch to figure out)
3) Going once again through original file, this time collecting positions
of filenames and description's sizes (in the order of previously sorted
files) for future seeking.
4) Finaly, seeking through the original file (from stage 3 we know where
files are), compare them by taking an ASCII value of each character in
filename, and write out descriptions according to ASCII values.
Need anything more to say? If you want to know more, think harder.
4. What happens during process?
~~~~~~~~~~~~~~~~~~~~~~~~~~~
First of all you must enter the parameter correctly.
For example: SHRINKER /C:\PCB\MAIN\PUBLIC
If you have the utility in the same directory where your directory is, you
don't have to write out the path.
Now that parameter is correct, it will rename your original directory to
.BAK and your final output will be your original directory. (the .BAK will
be saved)
Now I'd like to talk a little bit about the speed of the program. If I were
to define the factors that affect the runtime speed I would say the
following. Out of 100% I would give 70% to the number of files in
directory, 20% to the seeking speed of you HD, 10% to the CPU speed. Of
course the environment also matters. So far I tested it under DOS, DESQView
and OS/2. It seems to be working fine under those three.
5. Known bugs and problems.
~~~~~~~~~~~~~~~~~~~~~~~
Unfortionately, I had to make a very bad limitation. It didn't have to do
anything with me, it had something to do with Turbo Pascal compiler itself.
See, since I'm working with strings here, and they take up a lot of memory
the maximum possible number of 12-byte files that the program can read at
one time turned out to be 4600 (don't forget that the maximum size of any
global or local variables allowed by compiler is only 64k). Just try to
multiply 4600 by 12. You'll come up with 55200. Now add to that some
necessary global variables and units that I had to add, plus I had to leave
some space to avoid any possible memory fuckups. I tried working with
linked lists, but they gave me a headache so I said fuck it. I think that
4600 is quite a lot and I sincerely doubt that you'll ever reach that number
no matter how fast your board is. You don't have to worry about how many
files are in your directory, once program detects that there are more than
4600, it will stop execution automatically with a message. Sometimes the
program might shrink an extra file or two, or leave something. I'm not
going to get into details here explaining why that happens. Besides don't
forget that it's a program and it doesn't have a human brain in it, so just
chill. Watch out if you have a little header on top of your directory.
Although the program handles it, I don't guarantee anything. Always make
sure that there are no extraneous lines or characters in your directory.
6. Last words.
~~~~~~~~~~
Make sure that the size of SHRINKER.EXE is 22304 bytes. If it's not, know
that you have either cracked, or infected copy.
Oh, and I think I'll rewrite it in C to get rid of all those limitations.
7. Greetings.
~~~~~~~~~
Lone Runner - Of course our PPE section is alive you retard!
Drew - I think I'll call the other one CHOPPER ;)
END OF DOX